<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
%>
 
<link href="${pageContext.request.contextPath }/css/toastr.min.css" rel="stylesheet" />
<!-- toastr -->
<script src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
    String left = (String) request.getAttribute("LEFT2");
    System.out.println(left);
%>

<div class="sidebar-collapse">
	<ul class="nav metismenu" id="side-menu">
		<li class="nav-header" style="margin-top: -19px; height: 50px;">
			<div class="dropdown profile-element" style="margin-top: -10px;">
				<span>
				<img style="width: 16%; margin-top: -5px; margin-left: -10px;" alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
				</span> 
				<span style="color: white; font-weight: bold; font-size: 16px;">数据工厂</span>
			</div>
			<div class="logo-element">
				<img alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
			</div>
		</li>
		<c:if test="${User.user_power == 1 }">
<%-- 			<li <%="system_overview".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/tosystem_overview"><i --%>
<!-- 					class="fa fa-th-list"></i> <span class="nav-label">系统概览</span></a> -->
<!-- 			</li> -->
<li <%="q".equals(left) ? " class=\"active\"" : ""%>
				<%="zb".equals(left) ? " class=\"active\"" : ""%>
				<%="zp".equals(left) ? " class=\"active\"" : ""%>
				<%="f".equals(left) ? " class=\"active\"" : ""%>
				<%="pj".equals(left) ? " class=\"active\"" : ""%>
				<%="".equals(left) ? " class=\"active\"" : ""%>><a href="#"><i
					class="fa fa-signal"></i> <span class="nav-label">企业数据</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="q".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toBusiness?classify=q"><span
							class="nav-label">企业数据</span></a></li>
					<li <%="zb".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toBusiness?classify=zb"><span
							class="nav-label">招标投标</span></a></li>
					<li <%="zp".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toBusiness?classify=zp"><span
							class="nav-label">招聘数据</span></a></li>
					<li <%="f".equals(left)||"pj".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toBusiness?classify=f"><span
							class="nav-label">法律文书</span></a></li>
				</ul></li>
				
				
			<li <%="zi".equals(left) ? " class=\"active\"" : ""%>
				<%="sj".equals(left) ? " class=\"active\"" : ""%>
				<%="wl".equals(left) ? " class=\"active\"" : ""%>
					<%="jw".equals(left) ? " class=\"active\"" : ""%>
				<%="duan".equals(left) ? " class=\"active\"" : ""%>>
				<a href="#"><i class="fa fa-pie-chart"></i> <span class="nav-label">资讯数据</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="zi".equals(left) ? " class=\"active\"" : ""%>><a href="
						${pageContext.request.contextPath }/information/toZi?classify=zi"><span
							class="nav-label">自媒体</span></a></li>
					<li <%="duan".equals(left) ? " class=\"active\"" : ""%>><a href="
						${pageContext.request.contextPath }/information/toZi?classify=duan"><span
							class="nav-label">短视频</span></a></li>	
					<li <%="sj".equals(left) ? " class=\"active\"" : ""%>><a href="
						${pageContext.request.contextPath }/information/toZi?classify=sj"><span
							class="nav-label">社交媒体</span></a></li>
					<li <%="wl".equals(left) ? " class=\"active\"" : ""%>><a href="
						${pageContext.request.contextPath }/information/toZi?classify=wl"><span
							class="nav-label">网络媒体</span></a></li>
					<li <%="jw".equals(left) ? " class=\"active\"" : ""%>><a href="
						${pageContext.request.contextPath }/information/toZi?classify=jw"><span
							class="nav-label">境外数据</span></a></li>
						
				</ul></li>


			
				
			<li <%="zq".equals(left) ? " class=\"active\"" : ""%>
				<%="qc".equals(left) ? " class=\"active\"" : ""%>
				<%="ly".equals(left) ? " class=\"active\"" : ""%>
				<%="fc".equals(left) ? " class=\"active\"" : ""%>
				<%="cm".equals(left) ? " class=\"active\"" : ""%>
				<%="yl".equals(left) ? " class=\"active\"" : ""%>><a href="#"><i
					class="fa fa-suitcase"></i> <span class="nav-label">行业数据</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="zq".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toHang?classify=zq"><span
							class="nav-label">证券数据</span></a></li>
					<li <%="qc".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toHang?classify=qc"><span
							class="nav-label">汽车行业</span></a></li>
					<li <%="yl".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toHang?classify=yl"><span
							class="nav-label">医疗行业</span></a></li>	
					<li <%="ly".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">旅游行业</span></a></li>	
					<li <%="fc".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">房产行业</span></a></li>	
					<li <%="cm".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">传媒行业</span></a></li>									
				</ul></li>
					
			<li <%="tq".equals(left) ? " class=\"active\"" : ""%>
				<%="ds".equals(left) ? " class=\"active\"" : ""%>
				<%="bk".equals(left) ? " class=\"active\"" : ""%>
				<%="ts".equals(left) ? " class=\"active\"" : ""%>>
				<a href="#"><i class="fa fa-cloud"></i> <span class="nav-label">生活服务</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="tq".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toSheng?classify=tq"><span
							class="nav-label">天气数据</span></a></li>
					<li <%="ds".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toSheng?classify=ds"><span
							class="nav-label">电商</span></a></li>
					<li <%="bk".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">百科</span></a></li>		
					<li <%="ts".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toSheng?classify=ts"><span
							class="nav-label">投诉</span></a></li>
				</ul></li>		
				
		
				
		<li <%="xj".equals(left) ? " class=\"active\"" : ""%>
				<%="qg".equals(left) ? " class=\"active\"" : ""%>
				<%="zs".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toZhuan?classify=zs"><i
					class="fa fa-magnet"></i> <span class="nav-label">专业数据</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="zj".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">专家人才</span></a></li>
					<li <%="qg".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">器官芯片</span></a></li>
					<li <%="zs".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toZhuan?classify=zs"><span
							class="nav-label">知识产权</span></a></li>		
				</ul></li>	
				
					
			<li <%="zf".equals(left) ? " class=\"active\"" : ""%>
			<%="zfz".equals(left) ? " class=\"active\"" : ""%>
			<%="gj".equals(left) ? " class=\"active\"" : ""%>
			<%="".equals(left) ? " class=\"active\"" : ""%>>
				<a href="#"> <i class="fa fa-institution"></i> <span class="nav-label">政府部门</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="zf".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toZheng?classify=zf"><span
							class="nav-label">政府动态</span></a></li>
					<li <%="gj".equals(left) ? " class=\"active\"" : ""%>><a href="${pageContext.request.contextPath }/information/toZheng?classify=gj"><span
							class="nav-label">国家机关</span></a></li>
					<li <%="zfz".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span
							class="nav-label">政府政策</span></a></li>		
				</ul></li>			
				
				
<%-- 		<li <%="xt".equals(left) ? " class=\"active\"" : ""%> --%>
<%-- 				<%="zh".equals(left) ? " class=\"active\"" : ""%> --%>
<%-- 				<%="".equals(left) ? " class=\"active\"" : ""%>><a href="#"><i --%>
<!-- 					class="fa fa-wrench"></i> <span class="nav-label">系统设置</span></a> -->
<!-- 				<ul class="nav nav-second-level collapse"> -->
<%-- 					<li <%="xt".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span --%>
<!-- 							class="nav-label">系统菜单</span></a></li> -->
<%-- 					<li <%="zh".equals(left) ? " class=\"active\"" : ""%>><a href="#"><span --%>
<!-- 							class="nav-label">综合看板</span></a></li> -->
<!-- 				</ul></li>		 -->
				

		</c:if>
	</ul>

</div>
<script>
    function noPermission() {
        toastr.error('暂无权限');
    }

    function moreMenuItems() {
        $('#moreMenuItems').css('display', '');
    }
/*     // 点击取消高亮
    $("#side-menu li").click(function () {
    	  $(this).siblings().removeClass("active");
    	  $(this).addClass("active");
	});
     */
   
//     $("#side-menu  li  ul  li").click(function () {
//       $("#side-menu  li  ul").removeClass("nav nav-second-level collapse");
//       $("#side-menu  li  ul").addClass("nav nav-second-level collapse in");
//   	  $(this).siblings().removeClass("active");
//   	  $(this).addClass("active");
// 	});
  
    
</script>